package com.pine.common.captcha.config;

import com.pine.common.captcha.core.CaptchaGeneratorTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 验证码code配置属性类
 *
 * @author pine manage
 * @since 2024-08-21
 */
@Data
@ConfigurationProperties(prefix = "pine.common.captcha.code")
public class CaptchaCodeProperties {

    /**
     * 验证码生成类型
     */
    private CaptchaGeneratorTypeEnum captchaGeneratorType = CaptchaGeneratorTypeEnum.RANDOM;
    /**
     * 验证码字符长度，type=算术时，表示运算位数(1:个位数 2:十位数)；type=随机字符时，表示字符个数
     */
    private int length;
}
